import Index from "../pages/Index.vue";
import TeamPage from "../pages/TeamPage.vue";
import GroupPage from "../pages/GroupPage.vue";
import UserPage from "../pages/UserPage.vue";
import IndexSearchPage from "../pages/IndexSearchPage.vue";
import GroupSearchPage from "../pages/GroupSearchPage.vue";
import PrincipalInteriorGroupPage from "../pages/PrincipalInteriorGroupPage.vue";
import RegisterPage from "../pages/RegisterPage.vue";
import LoginPage from "../pages/LoginPage.vue";
import TownPage from "../pages/TownPage.vue";
import UserEditPage from "../pages/UserEditPage.vue";
import PostDetailsPage from "../pages/PostDetailsPage.vue";
import EditUserPage from "../pages/EditUserPage.vue";
import BasicLayout from "../layouts/BasicLayout.vue";
import MdEncryptionPage from "../pages/utils/MdEncryptionPage.vue";
import BaseEncryptionPage from "../pages/utils/BaseEncryptionPage.vue";
import BaseDecodePage from "../pages/utils/BaseDecodePage.vue";
import IndexSelectPage from "../pages/IndexSelectPage.vue";
import LearnPathPage from "../pages/LearnPathPage.vue";
import LearnPage from "../pages/LearnPage.vue";
import VideoPage from "../pages/VideoPage.vue";
import TopicPage from "../pages/TopicPage.vue";
import MyFavoursPage from "../pages/MyPage/MyFavoursPage.vue";
import MyPostsPage from "../pages/MyPage/MyPostsPage.vue";
import MyPostDetailsPage from "../pages/MyPage/MyPostDetailsPage.vue";
import SearchPostPage from "../pages/SearchPostPage.vue";
import MyHistoryPage from "../pages/MyPage/MyHistoryPage.vue";
import HomeSearchPage from "../pages/HomeSearchPage.vue";
import ExaminationPathPage from "../pages/ExaminationPathPage.vue";
import ExaminationSelectPage from "../pages/ExaminationSelectPage.vue";
import ResultPage from "../pages/ResultPage.vue";
import ReviewPage from "../pages/ReviewPage.vue";
import AdminPage from "../pages/AdminPage.vue";
import CPage from "../pages/CPage.vue";


const routes = [
    {
        path: '/home', title: '导航栏' ,component: BasicLayout,
        children: [
            {
                path: '/select', title: '世界',  component: IndexSelectPage,
            },
            {
                path: '/town', title: '城镇',  component: TownPage,
            },
            {
                path: '/team', title: '传道',  component: TeamPage,
            },
            {
                path: '/group', title: '宗门',  component: GroupPage,
            },
            {
                path: '/user',  title: '洞府', component: UserPage,
            },
            {
                path: '/',  title: '帖子', component: Index,
            }
        ]
    },
    {
        path: '/learnPath', title: '学习路线',  component: LearnPathPage,

    },

    {
        path: '/groupSearch', title: '宗门查找伙伴',  component: GroupSearchPage,

    },
    {
        path: '/indexSearch',  title: '世界查找资源', component: IndexSearchPage,

    },
    {
        path: '/principalInteriorOne', title: '宗门大厅', component: PrincipalInteriorGroupPage,

    },
    {
        path: '/user/login', title: '用户登录',  component: LoginPage,

    },
    {
        path: '/user/register', title: '用户注册',  component: RegisterPage,

    },
    { path: '/user/edit', title: '用户信息修改',  component: UserEditPage,

    },
    { path: '/edit/user', title: '真正修改页面',  component: EditUserPage,

    },
    {
        path: '/post/get', title: '查询帖子详细信息',  component: PostDetailsPage,
    },
    {
        path: '/md', title: 'md工具',  component: MdEncryptionPage,
    },
    {
        path: '/base64', title: 'Base64加密工具',  component: BaseEncryptionPage,
    },
    {
        path: '/base64decode', title: 'Base64解密工具',  component: BaseDecodePage,
    },
    {
        path: '/user/search', title: '',  component: GroupSearchPage,
    },
    {
        path: '/learn', title: '',  component: LearnPage,
    },
    {
        path: '/video', title: '',  component: VideoPage,
    },

    {
        path: '/topic', title: '',  component: TopicPage,
    },
    {
        path: '/my/favour', title: '',  component: MyFavoursPage,
    },

    {
        path: '/my/post', title: '',  component: MyPostsPage,
    },
    {
        path: '/my/history', title: '',  component: MyHistoryPage,
    },
    {
        path: '/my/post/details', title: '',  component: MyPostDetailsPage,
    },

    {
        path: '/search/details', title: '',  component: SearchPostPage,
    },
    {
        path: '/home/search', title: '',  component: HomeSearchPage,
    },
    {
        path: '/examination/path', title: '',  component: ExaminationPathPage,
    },
    {
        path: '/examination/select', title: '',  component: ExaminationSelectPage,
    },
    {
        path: '/result', title: '',  component: ResultPage,
    },
    {
        path: '/review', title: '',  component: ReviewPage,
    },
    {
        path: '/admin', title: '',  component: AdminPage,
    },
    {
        path: '/cPage', title: '',  component: CPage,
    },
]




export default routes;